home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / cclib / source / test.lmk < prev    next >
Text File  |  1995-11-16  |  880b  |  39 lines

  1. #
  2. # Make file for Lattice C test program
  3. #
  4. # --- the directory for the cclib.library include files
  5. DINCLUDE=:include
  6. # --- location of the special main routine
  7. SYSOBJ=lcmain.o
  8. # --- location of the Lattice startup module
  9. COBJ=lib:cc.o
  10. # --- connection routines for cclib.library
  11. CCLIB=lib:lcclib.lib
  12. # --- standard Lattice libraries
  13. LIB=lib:
  14. LATTICECLIB=$(LIB)lcmieee.lib,$(LIB)lc.lib,$(LIB)amiga.lib
  15. # --- name of the compile and link commands
  16. CC=lc
  17. LN=blink
  18. # --- flags for the linker
  19. LNFLAGS1=$(COBJ),$(SYSOBJ)
  20. LNFLAGS2=lib $(CCLIB),$(LATTICECLIB)
  21. # --- flags for the compiler
  22. CFLAGS=-fi -i$(DINCLUDE)
  23. # --- production rule for compiling
  24. .c.o:
  25.    $(CC) $(CFLAGS) $*.c
  26.  
  27. # *********** specifics for the application *********************
  28.  
  29. MKFILE=test.lmk
  30. PROGNAME=test
  31. OBJ=test.o
  32.  
  33. $(PROGNAME): $(SYSOBJ) $(OBJ) $(MKFILE)
  34.    $(LN) $(LNFLAGS1),$(OBJ) to $(PROGNAME) $(LNFLAGS2)
  35.  
  36.  
  37.  
  38.  
  39.